package com.ck.ips.service.impl.program;

import com.ck.common.model.MonitorDataProgram;
import com.ck.ips.dao.program.MonitorDataProgramMapper;
import com.ck.ips.service.program.MonitorDataProgramService;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author dxy
 * @date 2019/5/8 11:27
 */
@Service(value = "monitorDataProgramService")
public class MonitorDataProgramServiceImpl implements MonitorDataProgramService {
	@Autowired
	private MonitorDataProgramMapper monitorDataProgramMapper;

	/**
	 * 批量插入
	 *
	 * @param monitorDataProgramList List<MonitorDataProgram>
	 */
	@Override
	public void insertBatch(List<MonitorDataProgram> monitorDataProgramList) {
		if (CollectionUtils.isNotEmpty(monitorDataProgramList)) {
			monitorDataProgramMapper.insertBatch(monitorDataProgramList);
		}
	}

}
